<template>
  <view class="copy" @click="toCopy">吃亏要趁早</view>
</template>

<script setup>
const toCopy = () => {
  uni.setClipboardData({
    data: 'hello',
    success: function () {
      console.log('success');
    }
  });

}
</script>

<style lang="less" scoped>

</style>
